<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="store.DataStore"%>
<%@page import="store.Order"%>
<%@page import="java.util.*"%>
<%
request.setCharacterEncoding("UTF-8");
response.setContentType("text/html;charset=UTF-8");
String orderid = request.getParameter("orderid");
 String amount="";
 String goodsID="";
 String goodsName="";
 String goodsNum="";
List orderList = DataStore.orderList;
for (int i = 0 ; i < orderList.size();i++){
	Order order =(Order)orderList.get(i);
	if (order.getOrderid().equals(orderid)){
		amount=order.getAmount();
		goodsID=order.getGoodsID();
		goodsName=order.getGoodsName();
		goodsNum=order.getGoodsNum();
	}
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="icbc_b2c.jsp" target="_new" method="POST">
<table border="0" align="center">
	<tr align="center">
		<td colspan="3">订单信息</td>
	</tr>
	<tr>
		<td>订单ID</td>
		<td colspan="2"><input name="orderid" value="<%=orderid %>"></input></td>
	</tr>
	<tr>
		<td>订单金额</td>
		<td colspan="2"><input name="amount" value="<%=amount %>"></input>元</td>
	</tr>
	<tr>
		<td>商品编号</td>
		<td colspan="2"><input name="goodsID" value="<%=goodsID %>"></input></td>
	</tr>
	<tr>
		<td>商品名称</td>
		<td colspan="2"><input name="goodsName" value="<%=goodsName %>"></input></td>
	</tr>
	<tr>
		<td>商品数量</td>
		<td colspan="2"><input name="goodsNum" value="<%=goodsNum %>"></input></td>
	</tr>
	<tr>
		<td align="center" colspan="3"><input type="submit" value="Submit"></input></td>
	</tr>
</table>
</form>
</body>
</html>